Skip to content

Skip snapshotter root path creation for standalone convert mode#1906

Merged
coderbirju merged 1 commit into
awslabs:mainfrom
prafgup:prafulg/use-root-for-standalone
Mar 30, 2026
Merged

Skip snapshotter root path creation for standalone convert mode#1906
coderbirju merged 1 commit into
awslabs:mainfrom
prafgup:prafulg/use-root-for-standalone

Conversation

@prafgup
Copy link
Copy Markdown
Contributor

@prafgup prafgup commented Mar 21, 2026

Issue #, if available:

Description of changes:

  • Fix soci convert --standalone failing on minimal images (e.g., scratch with only /tmp or no dir) with mkdir /var/lib/soci-snapshotter-grpc/: no such file or directory by skipping validation in main.

Testing performed:

  • Ran unit tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@prafgup prafgup requested a review from a team as a code owner March 21, 2026 12:00
@github-actions github-actions Bot added go Pull requests that update Go code testing Unit and/or integration tests labels Mar 21, 2026
Comment thread cmd/soci/main.go
Comment thread soci/fs.go Outdated
@prafgup prafgup requested a review from sondavidb March 24, 2026 00:02
Comment thread cmd/soci/commands/convert.go Outdated
Signed-off-by: Praful Gupta <prafulgupta6@gmail.com>
@prafgup prafgup force-pushed the prafulg/use-root-for-standalone branch from cbf5cc9 to 49c51ce Compare March 24, 2026 21:31
@prafgup
Copy link
Copy Markdown
Contributor Author

prafgup commented Mar 24, 2026

@sondavidb Updated the PR with minimal changes just in main.go's Before hook.

Also would appreciate if it could be possible for you to ask someone internally to review #1907 as well :) (ps. #1897 as well if possible, tho not required)

@prafgup prafgup requested a review from sondavidb March 24, 2026 21:38
@github-actions github-actions Bot removed the testing Unit and/or integration tests label Mar 24, 2026
@prafgup
Copy link
Copy Markdown
Contributor Author

prafgup commented Mar 28, 2026

Hey @Shubhranshu153 as you have the context :) can you please review this PR and the ones mentioned in #1906 (comment)

@coderbirju coderbirju merged commit bffea92 into awslabs:main Mar 30, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants